package com.mtao;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import jakarta.validation.groups.Default;
import lombok.*;


@Data
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class Banner {
    private Integer id;
    private Integer sort=0;
    private Integer userId;
    private String url;
    @NotEmpty
    private String img;
    @NotEmpty
    private String type;

    public interface Add extends Default {

    }
    public interface Update extends Default{

    }
}
